/*
 *  Designed by Free.Wang <freefis@gmail.com>
 *  License on BSD License
 *  Achieved on Nov. 22. 2009
 *
 */

#includen "mutate.h"


void modi_seed( double example[3][6] , double (*rule)(double) )
{
    int y = ranint(1,3);
    int x = ranint(1,6);
    double value = example[y][x];

    value = (*rule)(value);
    example[yPosition][xPosition] = value;
}


/*
 *
 *
 *   Rules for Mutate
 *
 *
 */
double rule_add(double value)
{
    return value+=(double)1;
}

double rule_minus(double value)
{
    return value-=(double)1;
}

